@layout("/common/_container.html",{plugins:["ztree"],js:["/assets/modular/e/match/match.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">委托单信息</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-xs12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <input id="condition" class="layui-input" type="text" placeholder="用户"/>
                            </div>

                            状态
                            <div class="layui-inline">
                                <select name="status" id="status" lay-verify="required">
                                    <option value=""></option>
                                    <option value="PAID">已支付</option>
                                    <option value="PART_MATCH">部分撮合</option>
                                    <option value="ALL_MATCH">全部撮合</option>
                                    <option value="CANCEL">已经撤销</option>
                                    <option value="FINISH">完成结算</option>
                                    <option value="CANCEL_FINISH">撤销结算</option>
                                </select>
                            </div>

                            <div class="layui-inline">
                                <input id="timeLimit" class="layui-input" type="text" autocomplete="off"
                                       placeholder="时间范围" readonly/>
                            </div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>

                                @if(shiro.hasPermission("/match/export_bak")){
                                <button id="btnExp" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>导出</button>
                                 @}
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="matchTable" lay-filter="matchTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="matchType">
    {{#  if(d.matchType === 'SELL'){ }}
    <span style="color: #dd1517;">{{ d.matchTypeValue }}</span>
    {{#  } else { }}
    <span style="color: #36bb48;">{{ d.matchTypeValue }}</span>
    {{#  } }}
</script>
@}